﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;

namespace BLL

{
    public class UserController
    {

        // 登录方法
        public bool Login(string username, string password)
        {
            UserDao dao = new UserDao();
            if (dao.Login(username, password) > 0)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }
}
